package org.platform.constant;


import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 所有的设备分类对应的设备类型
 *
 * @author FengJie
 * @date 2018/7/16
 */
public class DeviceTypeConstant {

    /**
     * 调制器
     */
    private static final List<String> MOD = Arrays.asList("SignalGenerator");

    /**
     * 上变频器
     */
    private static final List<String> UC = Arrays.asList("MyTestUC", "XDC_MC_Type1_Test", "XDC_MC_Type2_Test", "SDC_MC_Type3_Test", "XDC_MC_Type6");

    /**
     * 下变频器
     */
    private static final List<String> DC = Arrays.asList("IFDC_MC_Type1", "IFDC_MC_Type2", "XDC_MC_Type3", "XDC_MC_Type4", "XDC_MC_Type5");

    /**
     * 解调器
     */
    private static final List<String> Demod = Arrays.asList("DEMQH_MC_Type4", "DEMQH_MC_Type3", "DEMQH_MC_Type2", "DEM640_MC_Type2", "MyDEMQH", "MyDEMQH_KJ");

    /**
     * 测试光端机
     */
    private static final List<String> OTTest = Arrays.asList("OT_MC_Type2_Test", "OT_MC_Type3_Test", "OT_MC_Type5_Test");

    /**
     * 数字光端机
     */
    private static final List<String> OTData = Arrays.asList("DGOT_MC_Type1", "DGOT_MC_Type2", "DGOT_MC_Type3");
    /**
     * 场放(由光端机ID判断)
     */
    private static final List<String> LAN = Arrays.asList("OT_MC_Type1", "OT_MC_Type2", "OT_MC_Type3", "OT_MC_Type4", "OT_MC_Type5");

    /**
     * 链路测试设备
     */
    public static final Map<String, List<String>> LINK_TEST_DEV_MAP = new HashMap<>(6);
    /**
     * 误码率测试设备
     */
    public static final Map<String, List<String>> BER_TEST_DEV_MAP = new HashMap<>(5);
    static {
        LINK_TEST_DEV_MAP.put("MOD", MOD);
        LINK_TEST_DEV_MAP.put("UC", UC);
        LINK_TEST_DEV_MAP.put("OTTest", OTTest);
        BER_TEST_DEV_MAP.put("LNA", LAN);
        LINK_TEST_DEV_MAP.put("OTData", OTData);
        LINK_TEST_DEV_MAP.put("DC", DC);


        BER_TEST_DEV_MAP.put("LNA", LAN);
        BER_TEST_DEV_MAP.put("DC", DC);
        BER_TEST_DEV_MAP.put("UC", UC);
        BER_TEST_DEV_MAP.put("MOD", MOD);
        BER_TEST_DEV_MAP.put("Demod", Demod);
    }
}
